package com.example.web.entity;

import javax.validation.constraints.NotNull;

import lombok.Builder;
import lombok.Data;

@Data
@Builder(toBuilder = true)
public class Group {

	@NotNull(message = "primary is not null")
	private Long id;

	private String name;

	private User user;

	public Group(@NotNull(message = "primary is not null") Long id, String name, User user) {
		super();
		this.id = id;
		this.name = name;
		this.user = user;
	}
	
	
}
